<?PHP


$media=new media;
$media->where['content']=$_GET['id'];
$media->get_gallery_images();

$headers[]='Id';
$headers[]='Type';
$headers[]='Thumb';
$headers[]='Image URL';
$headers[]='Thumb URL';
$headers[]='Action';

$show[]='id';
$show[]='type';
$show[]='thumb_tb';
$show[]='image';
$show[]='thumb';
$ajax['Delete']='a/delete_image.php';
$links['Edit']='?q=m/ads/d_media.php&cmd=edit&id=';
printformheader('Ad Zones','Content Listing');
foreach ($media->data as $x)
{
	$x['thumb_tb']="<img src='".ap($x['thumb'])."'>";
	$z[]=$x;
}
array_reverse($z);
if(!empty($z))
{

	p_table($headers,$z,$links,"class='tablesorter'",$show,$ajax,TRUE);

} 
printformfooter('Add Zone','index.php?q=m/ads/d_media.php&cmd=add',NULL,NULL,NULL,NULL);
?>

